<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="static/jquery-1.11.1.min.js"></script>
<script>
    var count = 1;
$(function () {
    $("#calCount").val(count);
    doReq();
})
    function doReq() {
        $.ajax({
            url: "/qrcode/doQrcodeCreate",
            success: function (res) {
                if (res.errorCode == 0) {
                    var src = res.data;
                    count++;
                    $("#image").attr("src", "");
                    $("#image").attr("src", src);
                    $("#calCount").val(count);

                }
                doReq();
            }
        })
    }
</script>
<a>二维码生成次数:  <input id="calCount" value=""/></a>
<img id="image" src="">
</body>
</html>